<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./MyPromise.js"></script>
</head>
<body>

</body>
<script>
  const p1 = new MyPromise((resolve, reject) => {
    console.log("my promise")
    reject('失败')
  })
  console.log(p1);
  let p2 = p1.then(()=> 200)
  console.log("p2",p2)
</script>
</html>
